package com.wanczy.service.impl;

import java.util.List;

import com.wanczy.dao.factory.UserRoleTableDAOFactory;
import com.wanczy.pojo.UserRoleTable;
import com.wanczy.service.UserRoleTableService;

public class UserRoleTableServiceImpl implements UserRoleTableService {

	public List<UserRoleTable> find(int userId) {
		return UserRoleTableDAOFactory.getUserRoleTableDAOInstance().find(userId);
	}

	public boolean doIns(UserRoleTable userRole) {
		return UserRoleTableDAOFactory.getUserRoleTableDAOInstance().doIns(userRole);
	}

	public boolean doDel(int userId) {
		return UserRoleTableDAOFactory.getUserRoleTableDAOInstance().doDel(userId);
	}

	@Override
	public List<UserRoleTable> findAllRole() {
		return UserRoleTableDAOFactory.getUserRoleTableDAOInstance().findAllRole();
	}

	@Override
	public List<UserRoleTable> findAllUSer() {
		return UserRoleTableDAOFactory.getUserRoleTableDAOInstance().findAllUSer();
	}
}
